package com.zw.yzk.kabu.view.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebView;

import com.zw.yzk.kabu.R;
import com.zw.yzk.kabu.base.BaseActivity;
import com.zw.yzk.kabu.management.ToolbarBuilder;

import butterknife.Bind;

/**
 * Created by zhanwei on 2017/2/21.
 */

public class AgreementActivity extends BaseActivity {

    @Bind(R.id.agreement)
    WebView agreement;

    @Override
    public int getLayoutId() {
        return R.layout.activity_agreement;
    }

    @Override
    public void iniToolbar(BaseActivity activity) {
        ToolbarBuilder
                .createBuilder(this)
                .setTitle(getResources().getString(R.string.kabu_agreement))
                .build();
    }

    @Override
    public void initComponent() {

    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        agreement.loadUrl("file:///android_asset/agreement/agreement.html");
    }

}
